#include "Trace.h"

#ifndef ZERO
	#define ZERO 0 
#endif

Trace::Trace()
	:offset(ZERO),
	pos(ZERO)
{
}

Trace::Trace(const Trace & toCopy)
	:offset(toCopy.offset),
	pos(toCopy.pos)
{	
}

Trace::~Trace()
{
	offset = ZERO;
	pos = ZERO;
}

void Trace::setOffset(int seekPos)
{
	offset = seekPos;
}

void Trace::setPos(unsigned int p)
{
	pos = p;
}

int Trace::getOffset()
{
	return offset;
}

unsigned int Trace::getPos()
{
	return pos;
}

const Trace &Trace::operator=(const Trace & toAssign)
{
	if(this != &toAssign)
	{
		offset = toAssign.offset;
		pos = toAssign.pos;
	}
	return (*this);
}

void Trace::print()
{
	std::cout << "OFFSET: " << offset << std::endl;
	std::cout << "POSICION: " << pos << std::endl;
}


